.class public abstract Lcom/instagram/creation/video/f/ap;
.super Lcom/instagram/creation/video/f/ab;
.source "VideoScrubberFragmentBase.java"

# interfaces
.implements Landroid/widget/SeekBar$OnSeekBarChangeListener;
.implements Lcom/instagram/creation/video/gl/z;


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0x10
.end annotation


# instance fields
.field private Z:Lcom/instagram/creation/video/widget/c;

.field protected a:Lcom/instagram/pendingmedia/model/a;

.field private aa:Lcom/instagram/ui/a/d;

.field private ab:Landroid/os/Handler;

.field protected b:Lcom/instagram/creation/video/f/as;

.field protected c:Z

.field protected d:Z

.field protected volatile e:Z

.field protected final f:Ljava/lang/Object;

.field private g:I

.field private h:Lcom/instagram/creation/video/widget/PreviewTextureView;

.field private i:Landroid/view/View;


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v0, 0x0

    .line 42
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ab;-><init>()V

    .line 61
    iput-boolean v0, p0, Lcom/instagram/creation/video/f/ap;->c:Z

    .line 62
    iput-boolean v0, p0, Lcom/instagram/creation/video/f/ap;->d:Z

    .line 63
    iput-boolean v0, p0, Lcom/instagram/creation/video/f/ap;->e:Z

    .line 64
    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Lcom/instagram/creation/video/f/ap;->f:Ljava/lang/Object;

    .line 68
    new-instance v0, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    new-instance v2, Lcom/instagram/creation/video/f/aq;

    invoke-direct {v2, p0}, Lcom/instagram/creation/video/f/aq;-><init>(Lcom/instagram/creation/video/f/ap;)V

    invoke-direct {v0, v1, v2}, Landroid/os/Handler;-><init>(Landroid/os/Looper;Landroid/os/Handler$Callback;)V

    iput-object v0, p0, Lcom/instagram/creation/video/f/ap;->ab:Landroid/os/Handler;

    .line 181
    return-void
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/ap;)Landroid/view/View;
    .locals 1
    .parameter

    .prologue
    .line 42
    iget-object v0, p0, Lcom/instagram/creation/video/f/ap;->i:Landroid/view/View;

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/ap;Lcom/instagram/ui/a/d;)Lcom/instagram/ui/a/d;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 42
    iput-object p1, p0, Lcom/instagram/creation/video/f/ap;->aa:Lcom/instagram/ui/a/d;

    return-object p1
.end method

.method private aa()V
    .locals 4

    .prologue
    const/4 v1, 0x0

    .line 348
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ap;->Z()Lcom/instagram/pendingmedia/model/c;

    move-result-object v2

    .line 351
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ap;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/i/a;

    invoke-interface {v0, v2}, Lcom/instagram/creation/video/i/a;->c(Lcom/instagram/pendingmedia/model/c;)V

    .line 353
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ap;->i()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ap;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v3, "directShare"

    invoke-virtual {v0, v3, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    move v1, v0

    .line 356
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ap;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/base/a;

    invoke-virtual {v2}, Lcom/instagram/pendingmedia/model/c;->a()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v2, v1}, Lcom/instagram/creation/base/a;->a(Ljava/lang/String;Z)V

    .line 357
    return-void
.end method

.method static synthetic b(Lcom/instagram/creation/video/f/ap;)Lcom/instagram/ui/a/d;
    .locals 1
    .parameter

    .prologue
    .line 42
    iget-object v0, p0, Lcom/instagram/creation/video/f/ap;->aa:Lcom/instagram/ui/a/d;

    return-object v0
.end method

.method static synthetic c(Lcom/instagram/creation/video/f/ap;)V
    .locals 0
    .parameter

    .prologue
    .line 42
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ap;->aa()V

    return-void
.end method

.method static synthetic d(Lcom/instagram/creation/video/f/ap;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 42
    iget-object v0, p0, Lcom/instagram/creation/video/f/ap;->ab:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic e(Lcom/instagram/creation/video/f/ap;)Lcom/instagram/creation/video/widget/c;
    .locals 1
    .parameter

    .prologue
    .line 42
    iget-object v0, p0, Lcom/instagram/creation/video/f/ap;->Z:Lcom/instagram/creation/video/widget/c;

    return-object v0
.end method

.method static synthetic f(Lcom/instagram/creation/video/f/ap;)I
    .locals 1
    .parameter

    .prologue
    .line 42
    iget v0, p0, Lcom/instagram/creation/video/f/ap;->g:I

    return v0
.end method

.method static synthetic g(Lcom/instagram/creation/video/f/ap;)Lcom/instagram/creation/video/widget/PreviewTextureView;
    .locals 1
    .parameter

    .prologue
    .line 42
    iget-object v0, p0, Lcom/instagram/creation/video/f/ap;->h:Lcom/instagram/creation/video/widget/PreviewTextureView;

    return-object v0
.end method


# virtual methods
.method protected X()V
    .locals 2

    .prologue
    .line 87
    iget-object v0, p0, Lcom/instagram/creation/video/f/ap;->ab:Landroid/os/Handler;

    const/4 v1, 0x6

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 88
    return-void
.end method

.method protected Y()V
    .locals 2

    .prologue
    .line 91
    iget-object v0, p0, Lcom/instagram/creation/video/f/ap;->ab:Landroid/os/Handler;

    const/4 v1, 0x5

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 92
    return-void
.end method

.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 96
    sget v0, Lcom/facebook/ax;->fragment_video_scrubber:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public a()Ljava/lang/String;
    .locals 1

    .prologue
    .line 150
    sget v0, Lcom/facebook/ba;->video_cover_screen_title:I

    invoke-virtual {p0, v0}, Lcom/instagram/creation/video/f/ap;->b(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public final a(Landroid/view/View;)V
    .locals 2
    .parameter

    .prologue
    .line 131
    iget-object v0, p0, Lcom/instagram/creation/video/f/ap;->b:Lcom/instagram/creation/video/f/as;

    if-eqz v0, :cond_0

    .line 132
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ap;->v()Landroid/view/View;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->scrubber_seekbar:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    .line 133
    sget v0, Lcom/facebook/ba;->processing:I

    invoke-virtual {p0, v0}, Lcom/instagram/creation/video/f/ap;->b(I)Ljava/lang/String;

    move-result-object v0

    .line 134
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ap;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1, v0, v0}, Lcom/instagram/ui/a/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Lcom/instagram/ui/a/d;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/ap;->aa:Lcom/instagram/ui/a/d;

    .line 135
    iget-boolean v0, p0, Lcom/instagram/creation/video/f/ap;->c:Z

    if-eqz v0, :cond_1

    .line 136
    iget-object v0, p0, Lcom/instagram/creation/video/f/ap;->b:Lcom/instagram/creation/video/f/as;

    invoke-virtual {v0}, Lcom/instagram/creation/video/f/as;->k()V

    .line 141
    :cond_0
    :goto_0
    return-void

    .line 138
    :cond_1
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/creation/video/f/ap;->d:Z

    goto :goto_0
.end method

.method public a(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 101
    invoke-super {p0, p1, p2}, Lcom/instagram/creation/video/f/ab;->a(Landroid/view/View;Landroid/os/Bundle;)V

    .line 103
    sget v0, Lcom/facebook/aw;->scrubber_preview_texture:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/widget/PreviewTextureView;

    iput-object v0, p0, Lcom/instagram/creation/video/f/ap;->h:Lcom/instagram/creation/video/widget/PreviewTextureView;

    .line 104
    iget-object v0, p0, Lcom/instagram/creation/video/f/ap;->h:Lcom/instagram/creation/video/widget/PreviewTextureView;

    invoke-virtual {v0, p0}, Lcom/instagram/creation/video/widget/PreviewTextureView;->setDependent(Lcom/instagram/creation/video/gl/z;)V

    .line 106
    sget v0, Lcom/facebook/aw;->scrubber_progressbar:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/ap;->i:Landroid/view/View;

    .line 108
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ap;->l()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    const/16 v1, 0x2d

    invoke-static {v0, v1}, Lcom/instagram/n/k;->a(Landroid/util/DisplayMetrics;I)F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/instagram/creation/video/f/ap;->g:I

    .line 110
    new-instance v0, Lcom/instagram/creation/video/widget/c;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ap;->getContext()Landroid/content/Context;

    move-result-object v1

    sget v2, Lcom/facebook/av;->cover_handle:I

    invoke-direct {v0, v1, v2}, Lcom/instagram/creation/video/widget/c;-><init>(Landroid/content/Context;I)V

    iput-object v0, p0, Lcom/instagram/creation/video/f/ap;->Z:Lcom/instagram/creation/video/widget/c;

    .line 113
    sget v0, Lcom/facebook/aw;->scrubber_seekbar:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/SeekBar;

    .line 114
    iget-object v1, p0, Lcom/instagram/creation/video/f/ap;->Z:Lcom/instagram/creation/video/widget/c;

    invoke-virtual {v0, v1}, Landroid/widget/SeekBar;->setThumb(Landroid/graphics/drawable/Drawable;)V

    .line 115
    invoke-virtual {v0, p0}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

    .line 116
    const/16 v1, 0x32

    invoke-virtual {v0, v1}, Landroid/widget/SeekBar;->setProgress(I)V

    .line 118
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ap;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/pendingmedia/model/f;

    new-instance v1, Lcom/instagram/creation/video/f/ar;

    invoke-direct {v1, p0}, Lcom/instagram/creation/video/f/ar;-><init>(Lcom/instagram/creation/video/f/ap;)V

    invoke-interface {v0, v1}, Lcom/instagram/pendingmedia/model/f;->a(Ljava/lang/Runnable;)V

    .line 127
    return-void
.end method

.method public a(Lcom/instagram/creation/video/gl/l;)V
    .locals 1
    .parameter

    .prologue
    .line 178
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/creation/video/f/ap;->b:Lcom/instagram/creation/video/f/as;

    .line 179
    return-void
.end method

.method public b(Landroid/view/View;)V
    .locals 1
    .parameter

    .prologue
    .line 145
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ap;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->onBackPressed()V

    .line 146
    return-void
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 379
    const-string v0, "video_scrubber"

    return-object v0
.end method

.method public g_()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 370
    invoke-super {p0}, Lcom/instagram/creation/video/f/ab;->g_()V

    .line 372
    iput-object v0, p0, Lcom/instagram/creation/video/f/ap;->Z:Lcom/instagram/creation/video/widget/c;

    .line 373
    iput-object v0, p0, Lcom/instagram/creation/video/f/ap;->i:Landroid/view/View;

    .line 374
    iput-object v0, p0, Lcom/instagram/creation/video/f/ap;->h:Lcom/instagram/creation/video/widget/PreviewTextureView;

    .line 375
    return-void
.end method

.method public onStartTrackingTouch(Landroid/widget/SeekBar;)V
    .locals 0
    .parameter "seekBar"

    .prologue
    .line 170
    return-void
.end method

.method public onStopTrackingTouch(Landroid/widget/SeekBar;)V
    .locals 0
    .parameter "seekBar"

    .prologue
    .line 175
    return-void
.end method

.method public w()V
    .locals 2

    .prologue
    .line 161
    invoke-super {p0}, Lcom/instagram/creation/video/f/ab;->w()V

    .line 162
    iget-object v0, p0, Lcom/instagram/creation/video/f/ap;->h:Lcom/instagram/creation/video/widget/PreviewTextureView;

    invoke-virtual {v0}, Lcom/instagram/creation/video/widget/PreviewTextureView;->c()V

    .line 163
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ap;->j()Landroid/support/v4/app/j;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->setRequestedOrientation(I)V

    .line 164
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ap;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x400

    invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V

    .line 165
    return-void
.end method

.method public x()V
    .locals 1

    .prologue
    .line 155
    invoke-super {p0}, Lcom/instagram/creation/video/f/ab;->x()V

    .line 156
    iget-object v0, p0, Lcom/instagram/creation/video/f/ap;->h:Lcom/instagram/creation/video/widget/PreviewTextureView;

    invoke-virtual {v0}, Lcom/instagram/creation/video/widget/PreviewTextureView;->b()V

    .line 157
    return-void
.end method

.method public y()V
    .locals 2

    .prologue
    .line 362
    invoke-super {p0}, Lcom/instagram/creation/video/f/ab;->y()V

    .line 364
    iget-object v0, p0, Lcom/instagram/creation/video/f/ap;->ab:Landroid/os/Handler;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V

    .line 365
    return-void
.end method
